package com.daifeng.gulimall.product.feign;

import com.daifeng.common.to.es.SkuEsModel;
import com.daifeng.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("mall-search")
public interface EsproductFeign {


    @PostMapping("/search/product")
    public R bulkIndex(@RequestBody List<SkuEsModel> esModels);

}
